<?php
	include("connectDB.php");
	
    # Read GET variables
    $fName = $_POST['fName'];
    $lName = $_POST['lName'];
 
    # Create output string
    $str = "\"$fName\", \"$lName\"\n";
 
    # Open and write to file
    $fh = fopen("postData.txt", "a+");
    fwrite($fh, $str);
    fclose($fh);
	
	$result = mysql_query("INSERT INTO meetings (loc_id, agenda, timedate, organizer) VALUES('$_POST[loc_id]','$_POST[agenda]','$_POST[timedate]','$_POST[organizer]')");
	
	echo $result;
 ?>